package org.jeecg.modules.basesource.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import org.jeecg.modules.basesource.entity.CwbbSyncRecord;
import org.jeecg.modules.basesource.mapper.CwbbSyncRecordMapper;
import org.jeecg.modules.basesource.service.ICwbbSyncRecordService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * @Description: 财报同步记录
 * @Author: jeecg-boot
 * @Date:   2022-03-08
 * @Version: V1.0
 */
@Service
public class CwbbSyncRecordServiceImpl extends ServiceImpl<CwbbSyncRecordMapper, CwbbSyncRecord> implements ICwbbSyncRecordService {

    @Override
    public CwbbSyncRecord getByDjxhSsq(String djxh, String ssqq, String ssqz) {
        LambdaQueryWrapper<CwbbSyncRecord> wrapper = new LambdaQueryWrapper<>();
        wrapper.eq(CwbbSyncRecord::getDjxh, djxh).eq(CwbbSyncRecord::getSsqq, ssqq).eq(CwbbSyncRecord::getSsqz, ssqz);
        return this.getOne(wrapper);
    }
}
